package cn.asterly.cicada.common.utils;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DriverTest {

    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        Class.forName("org.mariadb.jdbc.Driver");
        Connection conn = null;
        conn = DriverManager.getConnection("jdbc:mariadb://120.79.235.35:3300/news","root", "ikun2018");
        conn.close();
        System.out.println(conn);
    }
}
